﻿using DataStructure;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace DataStructure.Test
{
    
    
    /// <summary>
    ///This is a test class for SortingTest and is intended
    ///to contain all SortingTest Unit Tests
    ///</summary>
    [TestClass()]
    public class SortingTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Sorting Constructor
        ///</summary>
        [TestMethod()]
        public void SortingConstructorTest()
        {
            Sorting target = new Sorting();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for BinaryInsertSort
        ///</summary>
        public void BinaryInsertSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.BinaryInsertSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void BinaryInsertSortTest()
        {
            BinaryInsertSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for BubbleSort
        ///</summary>
        public void BubbleSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.BubbleSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void BubbleSortTest()
        {
            BubbleSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for HeapSort
        ///</summary>
        public void HeapSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.HeapSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void HeapSortTest()
        {
            HeapSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for InsertSort
        ///</summary>
        public void InsertSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.InsertSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void InsertSortTest()
        {
            InsertSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for MergingSort
        ///</summary>
        public void MergingSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.MergingSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void MergingSortTest()
        {
            MergingSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for QuickSort
        ///</summary>
        public void QuickSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.QuickSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void QuickSortTest()
        {
            QuickSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for RadixSort
        ///</summary>
        public void RadixSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.RadixSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void RadixSortTest()
        {
            RadixSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for SelectSort
        ///</summary>
        public void SelectSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.SelectSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void SelectSortTest()
        {
            SelectSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for ShellInsert
        ///</summary>
        public void ShellInsertTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            int dk = 0; // TODO: Initialize to an appropriate value
            Sorting.ShellInsert<T>(list, dk);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void ShellInsertTest()
        {
            ShellInsertTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for TableInsertSort
        ///</summary>
        public void TableInsertSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.TableInsertSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void TableInsertSortTest()
        {
            TableInsertSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for TableInsertSort
        ///</summary>
        public void TableInsertSortTest1Helper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            int[] dlta = null; // TODO: Initialize to an appropriate value
            int t = 0; // TODO: Initialize to an appropriate value
            Sorting.TableInsertSort<T>(list, dlta, t);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void TableInsertSortTest1()
        {
            TableInsertSortTest1Helper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for TreeSelectSort
        ///</summary>
        public void TreeSelectSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.TreeSelectSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void TreeSelectSortTest()
        {
            TreeSelectSortTestHelper<GenericParameterHelper>();
        }

        /// <summary>
        ///A test for TwoWorkingInsertSort
        ///</summary>
        public void TwoWorkingInsertSortTestHelper<T>()
        {
            List<T> list = null; // TODO: Initialize to an appropriate value
            Sorting.TwoWorkingInsertSort<T>(list);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        [TestMethod()]
        public void TwoWorkingInsertSortTest()
        {
            TwoWorkingInsertSortTestHelper<GenericParameterHelper>();
        }
    }
}
